package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import com.hulk.ratel.common.annotations.PoKo
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-01
 */
@PoKo
@TableName("t_ratel_test")
class TRatelTest : Model<TRatelTest>() {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    var id: Long? = null
    var key1: String? = null
    var value1: String? = null
    var desc1: String? = null
    /**
     * 备注
     */
    var remark: String? = null
    /**
     * 创建人员
     */
    @TableField("created_by")
    var createdBy: String? = null
    /**
     * 创建时间
     */
    @TableField("created_time")
    var createdTime: Date? = null
    /**
     * 审核时间
     */
    @TableField("audited_time")
    var auditedTime: Date? = null
    /**
     * 审核标志
     */
    @TableField("audited_flag")
    var auditedFlag: String? = null
    /**
     * 审核人
     */
    @TableField("audited_by")
    var auditedBy: String? = null
    /**
     * 最后更新人员
     */
    @TableField("updated_by")
    var updatedBy: String? = null
    /**
     * 最终更新时间
     */
    @TableField("updated_time")
    var updatedTime: Date? = null
    /**
     * 归档时间
     */
    @TableField("archived_time")
    var archivedTime: Date? = null
    /**
     * 归档标志
     */
    @TableField("archived_flag")
    var archivedFlag: String? = null
    /**
     * 原记录编号
     */
    @TableField("l_id")
    var lId: String? = null
    /**
     * 租户ID
     */
    @TableField("tenant_id")
    var tenantId: String? = null
    /**
     * 乐观锁版本号
     */
    @TableField("lock_version")
    var lockVersion: Long? = null
    /**
     * rsv1
     */
    var rsv1: String? = null
    /**
     * rsv2
     */
    var rsv2: String? = null
    /**
     * rsv3
     */
    var rsv3: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "TRatelTest{" +
        ", id=" + id +
        ", key1=" + key1 +
        ", value1=" + value1 +
        ", desc1=" + desc1 +
        ", remark=" + remark +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", auditedTime=" + auditedTime +
        ", auditedFlag=" + auditedFlag +
        ", auditedBy=" + auditedBy +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", archivedTime=" + archivedTime +
        ", archivedFlag=" + archivedFlag +
        ", lId=" + lId +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        ", rsv3=" + rsv3 +
        "}"
    }
}
